package edu.cuit.avatar.接口.computer;

/**
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/10 14:30
 */
public class ComputerTest {
    public static void main(String[] args) {
        Cpu intelCpu = new IntelCpu();
        //Cpu amdCpu = new AmdCpu();
        Ram ram = new SamsungRam();
        MainBoard mainBoard = new AsusMainBoard();

        mainBoard.setCpu(intelCpu);
        mainBoard.setRam(ram);

        Computer lenove = new Computer(mainBoard);
        lenove.start();
        lenove.work();
        System.out.println(lenove.getSetting());
    }
}
